
/**
 * Represents a video game
 * 
 * A game is lend and age restricted
 * 
 * Special information: Platform, Genre
 */
public class Game extends LendItem {
	private PlayConsole _playConsole;
	private GameGenre _genre;

	/**
	 * Constructor
	 * 
	 * @param title
	 * @param genre
	 * @param playConsole
	 * @param ageRating
	 * @param description
	 */
	public Game(String title, GameGenre genre, PlayConsole playConsole, String description) {
		super(title, description);
		_genre = genre;
		_playConsole = playConsole;
		
	}

	public PlayConsole getPlayConsole() {
		return _playConsole;
	}

	public GameGenre getGenre() {
		return _genre;
	}

	/**
	 * Returns all information
	 * 
	 * @return
	 */
	@Override
	public String toString() {
		StringBuilder rv = new StringBuilder();
		rv.append("Game ");
		rv.append(super.toString());
		rv.append(", ");
		rv.append(_genre);
		rv.append("), ");
		rv.append(_playConsole);
		return rv.toString();
	}
}
